package com.pen.sample.client;

import com.google.gwt.user.client.ui.RootPanel;
import com.pen.sample.client.ui.stocks.IStocksPeasant;
import com.pen.sample.client.ui.stocks.StocksNoble;

public class Emperor
{
	private final IEmpire _empire;
	private RootPanel _land;
	
	public Emperor( IEmpire empire )
	{
		_empire = empire;
	}
	
	public void acquire( RootPanel land )
	{
		_land = land;
		addStateListeners();
		gotoStocks();
		//Anything else?
	}

	private void addStateListeners()
	{
	}

	private void gotoStocks()
	{
		IStocksPeasant sp = _empire.getStocksPeasant();
		new StocksNoble( sp, _empire.getTradeRoutes() );
		_land.add( sp );
	}
}
